package org.dromara.agriculture.domain.bo;

import org.dromara.agriculture.domain.AgricultureEmployee;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 雇员业务对象 agriculture_employee
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AgricultureEmployee.class, reverseConvertGenerate = false)
public class AgricultureEmployeeBo extends BaseEntity {

    /**
     * 雇员ID
     */
    @NotNull(message = "雇员ID不能为空", groups = { EditGroup.class })
    private Long employeeId;

    /**
     * 编码
     */
    @NotBlank(message = "编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeCode;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeName;

    /**
     * 字典 agriculture_employee_type
     */
    @NotBlank(message = "字典 agriculture_employee_type不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeType;

    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeTel;

    /**
     * 字典 sys_user_sex
     */
    @NotBlank(message = "字典 sys_user_sex不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeSex;

    /**
     * 地址
     */
    @NotBlank(message = "地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String employeeAddress;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * 基地ID
     */
    @NotNull(message = "基地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long baseId;


    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


}
